#include<iostream>
using namespace std;
int a, b, c;
int main()
{
	cin >> a >> b >> c;
	int arr[10] = { 0 };
	int count = 0;
	for (int i = 1; i <= 1000 / c; i++) {
		int n1 = i * a;
		int n2 = i * b;
		int n3 = i * c;
		while (n1) {
			arr[n1 % 10]++;
			n1 /= 10;
		}
		while (n2) {
			arr[n2 % 10]++;
			n2 /= 10;
		}
		while (n3) {
			arr[n3 % 10]++;
			n3 /= 10;
		}
		int flag = 1;
		for (int j = 1; j <= 9; j++) {
			if (arr[j] != 1) {
				flag = 0;
			}
		}
		if (flag) {
			cout << i * a << " " << i * b << " " << i * c << endl;
			count++;
		}
		for (int j = 1; j <= 9; j++) {
			arr[j] = 0;
		}
	}
	if (count == 0) {
		cout << "No!!!" << endl;
	}
	return 0;
}